package com.nmf.site.biz.member.genx.emums;

public enum GenderEnums {
	F(2, "女"),
	M(1, "男"),
	;

	public Integer value;
	public String name;

	GenderEnums(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static GenderEnums getStatus(Integer value) {
		if (value != null) {
			GenderEnums[] otypes = GenderEnums.values();
			for (GenderEnums memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
